<form name="frm" action="<?php echo $this->site['base_url']?>admin_corner/uploadimage" method="post" enctype="multipart/form-data">

<table class="title" cellspacing="0" cellpadding="0">

  <tr>

    <td class="title_label"><?php echo Kohana::lang('corner_lang.tt_page')?></td>

    <td class="title_button">

    <button type="button" name="btn_back" class="button back" onclick="javascript:location.href='<?php echo $this->site['base_url']?>admin_corner/search'">

    <span><?php echo Kohana::lang('admin_lang.btn_back')?></span>

    </button>

    &nbsp;

    <button type="reset" name="btn_reset" class="button reset"/>

    <span><?php echo Kohana::lang('admin_lang.btn_reset')?></span>

    </button>

    &nbsp;

    <button type="submit" name="btn_save" class="button save">

    <span><?php echo Kohana::lang('admin_lang.btn_save')?></span>

    </button>

    </td>

  </tr>

</table>

<table class="form" cellspacing="0" cellpadding="5">
<tr>

        <td width="87" nowrap="nowrap"><?php echo Kohana::lang('corner_lang.lbl_image')?>:</td>

        <td width="703"><input name="txt_image" type="file" /></td>
  	</tr>
<tr>

      	<td colspan="2">
		
		<?php foreach($mlist as $list){
		if(!empty($list['corner_image'])){
		?>
		<div style="width:150px; float:left; padding-right:10px">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
		  <tr>
			<td><img src="<?php echo $this->site['base_url']?>uploads/corner/<?php echo $list['corner_image']?>" width="150px"></div></td>
		  </tr>
		   <tr>
			<td align="center"><a href="<?php echo $this->site['base_url']?>admin_corner/delete_image/<?php echo $corner_id;?>/<?php echo $list['corner_image_id']?>">Delete</a></td>
		  </tr>
		</table>

		</div>
		<?php 
			}
		} ?>
		</td>
	</tr>
    <tr>

      	<td>&nbsp;</td>

		<td><input name="hd_id" type="hidden" id="hd_id" value="<?php echo $corner_id;?>"/></td>
	</tr>
</table>

</form>

